package com.huatai.bpmn.commom.constant;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author :yxy
 * @date : 2023/9/6
 */
@Component
public class WechatConstant implements InitializingBean {
	@Value("{wechat.corpId}")
	private  String corpId;
	@Value("{wechat.corpSecret}")
	private  String corpSecret;

	public static String ACCESS_CORP_SECRET;
	public static String ACCESS_CORP_ID;

	@Override
	public void afterPropertiesSet() throws Exception {
		ACCESS_CORP_ID = corpId;
		ACCESS_CORP_SECRET = corpSecret;
	}
}
